import requests

# 创建 session对象
session = requests.Session()

# 发送 验证码请求 get
session.get(url="https://hmshop-test.itheima.net/index.php?m=Home&c=User&a=verify&r=0.9481046124662501")

# 发送 登录请求 post
resp = session.post(url="https://hmshop-test.itheima.net/index.php?m=Home&c=User&a=do_login&t=0.3270702534589863",
                    data={"username": "13500001111", "password": "111222", "verify_code": "8888"})

# 打印响应结果
print("登录结果：", resp.text)